package cn.clq.ymcc.feign;

import cn.clq.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author clqlongbao
 * @version 1.0
 * @description:
 * @date 2022/7/25 14:56
 */
@FeignClient(value = "service-media",fallbackFactory = SearchMediaFilesFeignClientFallBackFactory.class)
public interface SearchMediaFilesFeignClient {

    @GetMapping("/mediaFile/searchMediaFiles/{chapterId}")
    JSONResult searchMediaFiles(@PathVariable("chapterId") Long chapterId);
}
